import antlr3
import sys
from regexsLexer import regexsLexer
from regexsParser import regexsParser

char_stream = antlr3.ANTLRInputStream(sys.stdin)
# or to parse a file:
# char_stream = antlr3.ANTLRFileStream(path_to_input)
# or to parse an opened file or any other file-like object:
# char_stream = antlr3.ANTLRInputStream(file)

lexer = regexsLexer(char_stream)
tokens = antlr3.CommonTokenStream(lexer)
parser = regexsParser(tokens)
parser.regex()

#print "Y el parser es: "
#print parser
